<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<script>
    let userName = prompt('请输入用户名：')
    let age = prompt('请输入年龄：')
    let gender = prompt('请输入性别：')
    document.write(userName)
    alert(age)
    console.log(gender)
</script>
</body>
</html>